package cn.dw.sg.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dw.sg.domain.Role;
import cn.dw.sg.mapper.RoleMapper;
import cn.dw.sg.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService{
	
	
	@Autowired
	private RoleMapper roleMapper;
	
	
	
	
	public RoleMapper getRoleMapper() {
		return roleMapper;
	}

	public void setRoleMapper(RoleMapper roleMapper) {
		this.roleMapper = roleMapper;
	}

	@Override
	public void add(Role role) {
		roleMapper.add(role);
	
		
	}

	@Override
	public void update(Role role) {
		roleMapper.update(role);
	
		
	}

	@Override
	public void delete(int id) {
		roleMapper.delete(id);
		
	}

	@Override
	public List<Role> query(Role role) {
		
		return roleMapper.query(role);
	}
	

}
